<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all"/>
    <link rel="stylesheet" href="__CSS__/admin.css" media="all">
    <style type="text/css">

        /* tooltip */
        #tooltip {
            position: absolute;
            border: 1px solid #ccc;
            background: #333;
            padding: 2px;
            display: none;
            color: #fff;
        }
    </style>
</head>
<body style="padding:10px;">
<div class="tplay-body-div">
    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="layui-this">用户管理</li>
            
        </ul>
    </div>
    <form class="layui-form serch" action="{:url('admin/user/user')}" method="post">
        <div class="layui-form-item" style="float: left;">
            <div class="layui-input-inline">
                <input type="text" name="keywords" lay-verify="title" autocomplete="off" placeholder="请输入用户关键字"
                       class="layui-input layui-btn-sm">
            </div>
            <button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="serch">立即提交</button>
        </div>
    </form>
    <table class="layui-table" lay-size="sm">
        <thead>
        <tr>
            <th>用户ID</th>
            <th>用户姓名</th>
            <th>用户性别</th>
            <th>用户头像</th>
            <th>用户积分</th>
            <th>用户等级</th>
            <th>联系方式</th>
            <th>注册时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="info" id="vo"}
        <tr>
            <td>{$vo.fit_id}</td>
            <td>{$vo.fit_name}</td>
            <td>
                {if condition="($vo.fit_sex == 1) "}男
                {elseif condition="$vo.fit_sex == 2"/}女
                {else /} 未知
                {/if}
            </td>
            <td><a href="{$vo.fit_img}" class="tooltip"><img src="{$vo.fit_img}" width="60" height="32"></a></td>
            <td>{$vo.fit_jifen}</td>
            <td>{$vo.fit_rank}</td>
            <td>{$vo.fit_tel}</td>
            <td>{$vo.fit_time}</td>
            <td>
                <div class="layui-btn-group">
                    <a href="{:url('admin/user/user_delete',['id'=>$vo.fit_id])}"
                       class="layui-btn layui-btn-sm" id="{$vo.fit_id}"
                       style="margin-right: 0;font-size:12px;">删除</a>
                </div>
            </td>

        </tr>
        {/volist}
        </tbody>
    </table>
    {$page}
    {include file="public/foot"}
</div>
</body>
</html>
